package com.cmes.mes.basic.core.constant;

import com.cmes.core.ResponseCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 错误码
 * <p>
 * 基础模块使用编码范围：200101 -> 209999
 * </p>
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
@RequiredArgsConstructor
@Getter
public enum ErrorCode implements ResponseCode {

    // 客户
    CUSTOMER_NOT_EXISTS         ("200101", "客户不存在或者已删除!"),
    CUSTOMER_AUDIT_STATUS_FAIL  ("200102", "客户%s不是%s状态，不能%s!"),
    CUSTOMER_DISABLED           ("200103", "客户%s已停用，请不要重复操作!"),


    ;


    private final String code;
    private final String message;

}
